forum

Home / DeveloperSection / Forums / How to display text in an MVC view with htmlattrbutes

How to display text in an MVC view with htmlattrbutes

Takeshi Okada 2044 28-Nov-2014

I have the following code : 

@Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", 
"Manage", "Account",
routeValues: null,
htmlAttributes: new { title = "Manage" })

I just want to display the text (with the correct htmlattribute) (i.e. no link) 

Could you help me with the correct syntax please?


Updated on 29-Nov-2014

Can you answer this question?


Answer

1 Answers

Liked By